import java.util.ArrayList;

import org.jgap.IChromosome;

public class ChromosomeManager {

	public ChromosomeManager() {
	}

	public ArrayList<Integer> chromosomeToArray(IChromosome chromosome) {
		ArrayList<Integer> genes = new ArrayList<Integer>();
		for (int i = 0; i < 30; i++) {
			genes.add((Integer) chromosome.getGene(i).getAllele());
		}
		return genes;
	}

}
